var dom = document.getElementById('data_left_bottom');
var myChart = echarts.init(dom, 'dark', {
  renderer: 'canvas',
  useDirtyRect: false
});
var app = {};

var option;

option = {
backgroundColor:'',
tooltip: {
    trigger: 'axis'
  },
title: {
text: '车辆7日记录(车次)',
top:'10px'
},
legend: {
orient: 'horizontal',
right: 10,
top: '10',
data: [
	{
	  name: '外部车辆',
	  icon: 'circle'
	},
	{
	  name: '内部车辆',
	  icon: 'circle'
	},
]
},
xAxis: {
type: 'category',
  splitLine: {
	 lineStyle: {
	   type: 'dashed' // y轴分割线类型
	},
	 show:true
  },
boundaryGap: false,
data: ['上周三', '上周四', '上周五', '上周六', '上周日', '本周一', '本周二']
},
yAxis: {
type: 'value'
},
series: [
{
  name: '外部车辆',
  type: 'line',
  data: [4, 5, 6, 2, 6, 7, 10],
  smooth: true
},
{
  name: '内部车辆',
  type: 'line',
  data: [5, 7, 2, 5, 3, 2, 6],
  smooth: true
}
]
};

if (option && typeof option === 'object') {
  myChart.setOption(option);
}

window.addEventListener('resize', myChart.resize);